//
//  SingerZhuanTableViewCell.m
//  MusicPlayer
//
//  Created by 李欢 on 15/5/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "SingerZhuanTableViewCell.h"
#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height
@implementation SingerZhuanTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)dealloc
{
    [_zhuanName release];
    [_time release];
    [_image release];
    
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {

        self.selectionStyle = UITableViewCellSelectionStyleNone;

        self.zhuanName = [[UILabel alloc]initWithFrame:CGRectMake(130/375.0*Width, 10/667.0*Height, 170/375.0*Width, 30/667.0*Height)];
        self.zhuanName.font = [UIFont systemFontOfSize:17/375.0*Width];

        [self.contentView addSubview:self.zhuanName];
        [self.zhuanName release];
        
        self.time = [[UILabel alloc]initWithFrame:CGRectMake(130/375.0*Width, 40/667.0*Height, 170/375.0*Width, 30/667.0*Height)];
        self.time.font = [UIFont systemFontOfSize:17/375.0*Width];
        [self.contentView addSubview:self.time];
        [self.time release];
        
        self.image = [[UIImageView alloc]initWithFrame:CGRectMake(10/375.0*Width, 10/667.0*Height, 100/375.0*Width, 80/667.0*Height)];
        //            图片变成圆形
        self.image.layer.cornerRadius = 9/375.0*Width;
        self.image.clipsToBounds = YES;
        [self.contentView addSubview:self.image];
        [self.image release];
        
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
